package com.millstein.tsinglog.model.dto.role;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class RoleSaveDTO {

    private Long id;
    @NotNull
    @Length(max = 8)
    private String roleName;
    @Length(max = 50)
    private String description;
    @Max(99)
    @Min(1)
    private Integer sort;
}
